import Vue from 'vue'
import App from './App'
// 引入vuex
import store from './store/index.js';
import 'static/icon/iconfont.css' // icon的css

//引入uview
import uView from "uview-ui";
Vue.use(uView);

// 播放量的过滤器
Vue.filter('count',function(value){
	if(value>10000&&value<=100000000){
		value/=1000
		return value.toFixed(1)+'万'
	}else if(value > 100000000){
		value /= 100000000
		return value.toFixed(1)+'亿'
	}else {
		return value
	}
})
<<<<<<< HEAD
=======
// 时间过滤器
Vue.filter('time',function(value){
	var data = new Date(value)
	var y = data.getFullYear()
	var m = data.getMonth() + 1
	var r = data.getDate()
	return `${y}年${m}月${r}日`
})
>>>>>>> detail

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})
app.$mount()
